
README $Revision: 1.2 $

There are three directories:

	bin		- binaries of gcc tools already built.
			  These are in a separate tar file: you need
			  to un-tar them here.  The makefiles look for
			  these binaries here.
	tx16lib		- source directory for TX16 library routines.
			  tx16lib.h describes the entry points.
	misc		- example app source (not very useful stuff)
	copy		- the orginal attempt at a Typhoon back-up utility.
			  (works only on early releases of Typhoon)

	bin
	---
		m68000-hp-bsd-gcc
		m68000-any-coff-ar
		m68000-any-coff-as
		m68000-any-coff-ld
		coff2tx16

	These are gcc/binutils cross compiler utilities.  I used 
	the HP BSD target configuration for the compiler because it
	was the closest to what I wanted (68020 based but an option
	makes it only generate 68000 instructions).
	
	For the binutils output, I used m68k-coff and then came up
	with a program to turn a m68k-coff a.out program into a final
	t8wsys.sys file that can be booted (the TX-16 tech doc shows
	the format of this file).

	I had to tweak a few header files in the gcc distribution
	to get this combination to work.


	tx16lib
	-------
		Makefile	bcopy.c
		die.c		disk.c
		div.c		ints.c
		keys.c		lcd.c
		midi.c		ml.s
		msdos.c		printf.c
		start.c		tx16.h
		tx16lib.h

	All the useful stuff!  Look at the tx16lib.h header file first.
	It gives the official entry points into the library of routines.

	tx16.h is a header file describing the hardware as given in the
	TX-16 tech doc.	

	I got quite a few goodies for MIDI, the LCD display, timer interrupts,
	interrupt masking (spl), and floppy disk access.

	Do a make in this directory before making in the "misc" directory.
	It'll build the tx16lib.a file used to link applications.


	misc
	----
		Makefile
		hello.c
		file.c
		time.c

	The Makefile is the most important thing in this directory.
	It has all the right gcc,gas, and ld options needed to build
	a TX-16 application.  The example apps may be of no use to
	you but at least they show how one is written.

	A TX-16 app's first entry point is start().  The actual
	first entry point called is _start in the tx16lib but,
	after it does a few initialization things, it calls your
	start() routine.  If your start() routine exits, the
	68000 will fall into an infinite loop.

	The makefile final targets are ".sys" files.  A .sys file is
	copied to "t8wsys.sys" on a Yamaha OS formatted floppy disk
	and booted by the TX-16.


						-Thomas Skibo
						skibo@sgi.com
						Sun Jun 30 14:23:13 PDT 1996
